package com.bhms.module.users.users.service;

import java.util.List;

import com.bhms.module.users.users.mapper.Users;
import com.bhms.module.users.users.mapper.UsersMapper;

public class UserServiceBean implements UserService {

	private UsersMapper usersMapper;

	/**
	 * 查询用户业务处理方法
	 * 
	 * @return
	 */
	@Override
	public List<Users> searchUser(Users users) {
		int totalCount = usersMapper.selectCount(users);
		users.setTotalLine(totalCount);
		return usersMapper.select(users);
	}

	public void setUsersMapper(UsersMapper usersMapper) {
		this.usersMapper = usersMapper;
	}
}
